﻿namespace AreaConverterNamespace
{
    public class Measure
    {
        public double measureInMeters { get; private set; }
        public double amount { get; internal set; }

        public Measure(double inMeter, double quantity = 0.0)
        {
            if (quantity < 0.0)
                throw new NegativeAmountException();
            amount = quantity;
            if (inMeter < 0.0)
                throw new NegativeMetersInMeasureException();
            measureInMeters = inMeter;
        }
    }
}